package com.coderman.infosys.auth.domain.enums.errors;

import com.coderman.infosys.plat.auth.common.error.IError;

/**
 * Description:
 * date: 2022/1/10
 *
 * @author shenshuai
 * @version 1.0.0
 * @since JDK 1.8
 */
public enum AuthorityErrorEnum implements IError {
    AUTH_TO_ROLE_ERROR("E600000001","给角色授权失败"),
    USER_AUTH_NOF_FUND_ERROR("E600000002","该用户没有相关权限资源"),
    ROLE_AUTH_NOF_FUND_ERROR("E600000003","该角色没有相关权限资源"),
    AUTHORITY_NOF_FUND_ERROR("E600000004","未找到对应权限资源"),

    ;
    private  String errorCode;

    private String errorMsg;

    AuthorityErrorEnum(String errorCode,String errorMsg){
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }
    @Override
    public String getErrorCode() {
        return this.errorCode;
    }

    @Override
    public String getErrorMsg() {
        return this.errorMsg;
    }

}
